﻿package app.view.components.buttons 
{
	import app.model.types.LangTypes;
	import flash.display.MovieClip;
	
	/**
	 * ...
	 * @author www
	 */
	public class LangBtn extends MovieClip
	{
		// app.view.components.buttons.LangBtn
		
		public function LangBtn() 
		{
			init();
		}
		
		protected function init():void
		{
			//trace(this);
		}
		
		public function setLang(lang:String=LangTypes.RUSSIAN):void
		{
			//trace('setLang : ' + lang);
			switch (lang) 
			{
				case LangTypes.RUSSIAN:
					gotoAndStop(1);	
				break;
							
				case LangTypes.ENGLISH:
					gotoAndStop(2);
				break;
				
				case LangTypes.CHINA:
					gotoAndStop(3);
				break;
			}
		}
		
	}

}